onEvent('recipes', event => {
    //Item.of('custommachinery:custom_machine_item', '{machine:"custommachinery:chemical_reactor"}')
    event.recipes.custommachinery.custom_machine("custommachinery:chemical_reactor", 400)
        .requireFluid(Fluid.of('minecraft:water', 6000))
        .requireFluid(Fluid.of('mekanism:sodium', 300))
        .produceItem('6x kubejs:hydrogen_peroxide')
        .requireEnergy(20000)


    event.recipes.custommachinery.custom_machine("custommachinery:chemical_reactor", 400)
        .requireItem('6x thermal:lapis_dust')
        .produceItem('4x kubejs:ice_shard')
        .requireFluid(Fluid.of('minecraft:water', 8000))
        .requireEnergy(20000)

    event.recipes.custommachinery.custom_machine("custommachinery:chemical_reactor", 400)
        .requireItem('kubejs:stibium_dust')
        .requireItem('8x kubejs:ice_shard')
        .requireFluid(Fluid.of('kubejs:diethyl_ether', 250))
        .requireFluid(Fluid.of('mekanism:chlorine', 5000))
        .produceFluid(Fluid.of('kubejs:antimony_pentachloride', 8000))
        .requireEnergy(20000)

    event.recipes.custommachinery.custom_machine("custommachinery:chemical_reactor", 400)
        .requireItem('emendatusenigmatica:copper_plate').chance(0.1)
        .requireItem('16x kubejs:hydrogen_peroxide')
        .requireFluid(Fluid.of('mekanism:hydrogen', 8000))
        .requireFluid(Fluid.of('pneumaticcraft:etching_acid', 1000))
        .produceFluid(Fluid.of('kubejs:p507', 2000))
        .requireEnergy(20000)

    event.recipes.custommachinery.custom_machine("custommachinery:chemical_reactor", 400)
        .requireItem('2x minecraft:gunpowder')
        .requireItem('2x minecraft:spider_eye')
        .requireFluid(Fluid.of('pneumaticcraft:plastic', 1000))
        .requireFluid(Fluid.of('tconstruct:blood', 100))
        .produceFluid(Fluid.of('pneumaticcraft:etching_acid', 3000))
        .requireEnergy(20000)

    event.recipes.custommachinery.custom_machine("custommachinery:chemical_reactor", 400)
        .requireItem('2x minecraft:gunpowder')
        .requireItem('2x minecraft:spider_eye')
        .requireFluid(Fluid.of('pneumaticcraft:plastic', 1000))
        .requireFluid(Fluid.of('evilcraft:blood', 1000))
        .produceFluid(Fluid.of('pneumaticcraft:etching_acid', 3000))
        .requireEnergy(20000)


    event.recipes.custommachinery.custom_machine("custommachinery:flame_furnace", 200)
        .requireFluid(Fluid.of('pneumaticcraft:plastic', 1000))
        .produceItem('2x pneumaticcraft:plastic')

    event.recipes.custommachinery.custom_machine("custommachinery:circuit_etcher", 400)
        .requireItem('pneumaticcraft:empty_pcb')
        .requireFluid(Fluid.of('pneumaticcraft:etching_acid', 100))
        .produceItem('pneumaticcraft:unassembled_pcb')

        event.recipes.custommachinery.custom_machine("custommachinery:stabilizer", 1000)
		.requireStructure([["a"],["m"]], 
			{"a":"forbidden_arcanus:black_hole{id:\"forbidden_arcanus:black_hole\"}"})
		.requireRedstone(10, ">=")
		.runCommandOnEnd("/fill ~ ~-1 ~ ~ ~-1 ~ elementalcraft:source",false)


	event.recipes.custommachinery.custom_machine("custommachinery:stabilizer", 1000)
        .requireStructure([["a"],["m"]], 
			{"a":"elementalcraft:source"})
		.requireRedstone(10, "<=")
		.runCommandOnEnd("/setblock ~ ~-1 ~ forbidden_arcanus:black_hole{id:\"forbidden_arcanus:black_hole\"}",false)


	event.recipes.custommachinery.custom_machine("custommachinery:crystal_smash", 20)	
		.breakBlockOnEnd(['quark:indigo_crystal',
            'quark:blue_crystal',
            'quark:green_crystal',
            'quark:yellow_crystal',
            'quark:orange_crystal',
            'quark:red_crystal',
            'quark:black_crystal',
            'quark:white_crystal',
            'quark:violet_crystal',
            'evilcraft:dark_block',
            'minecraft:clay',
            'minecraft:sand',
            'minecraft:end_stone'
        ], true , -4, 0, 1, 4, 4, 9)
	

    //Item.of('custommachinery:custom_machine_item', '{machine:"custommachinery:crystal_smash"}')
    //Item.of('custommachinery:custom_machine_item', '{machine:"custommachinery:stabilizer"}')

    //.requireItemTag('#forge:ingots/nickel', 1, "input2")
    //.produceItem('3x emendatusenigmatica:invar_ingot')
    //.requireFluid(Fluid.of("minecraft:lava", 200))
    //.produceFluid(Fluid.of('minecraft:water', 2000));
});